<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<?php
	//先通过dirname(__FILE__)获取到当前文件绝对路径，然后再按具体情况用..去控制找到templates文件夹下的header.php
	include dirname(__FILE__)."/templates/header.php";
?>

<link type="text/css" rel="stylesheet" href="<? echo base_url() ?>css/admin/login.css"/>

<script type="text/javascript">
	function checkParent(){
		if(window.parent.parent.parent.length>0){
	        window.parent.parent.parent.location="login.php";
	    }
		if(window.parent.parent.length>0){
	        window.parent.parent.location="login.php";
	    }
	    if(window.parent.length>0){
	        window.parent.location="login.php";
	    }
	}
</script>

</head>

<body onload="checkParent()">
<form action='<?php echo base_url() . "index.php/admin/doLogin"?>' method='post'>
	<div id="formDiv">
		<dl>
			<dt>
				<label for="user_name"/>用户名
			</dt>
			<dd>
				<input type='text' name='user_name' />
			</dd>
		</dl>
		<dl>
			<dt>
				<label for="password"/>密&nbsp;&nbsp;码
			</dt>
			<dd>
				<input type='password' name='password' />
			</dd>
		</dl>
		<dl>
			<dt>&nbsp;</dt>
			<dd>
				<input type='submit' value='登录' style="width:50px"/>
			</dd>
		</dl>
		<div style="clear:both"></div>
	</div>
</form>
<?php
if(isset($error_info)){ ?>
<div><span style='color:red'><?php echo $error_info ?></span></div>
<?php } ?>
</body>
</html>